package com.zxy.ziems.server.device.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zxy.btp.mybatis.base.BaseEntity;

/**
 * 设备属性
 * 关联的DataType
 * @author 10348359
 * @create 2024-02-28 0:51
 */
@TableName("t_device_property")
public class DevicePropertyEntity extends BaseEntity {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    /**
     * 显示名称
     */
    private String name;

    /**
     * 设备ID
     */
    private String deviceId;

    /**
     * 属性Id 关联的DataType
     */
    private String dataTypeId;

    /**
     * 显示的单位 关联的DataUnit
     */
    private String unitId;

    /**
     * 数据的单位 关联DataUnit
     */
    private String dataUnitId;

    /**
     * 采集时间间隔 单位毫秒 默认是1000毫秒
     */
    private Integer collectInterval;

    /**
     * 通知方式 1是变化后通知 0是实时通知 默认是实时通知
     */
    private Integer notifyType;

    /**
     * 高级配置
     */
    private String advanced;

    /**
     * 数据字典
     */
    public String dictCode;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(String deviceId) {
        this.deviceId = deviceId;
    }

    public String getDataTypeId() {
        return dataTypeId;
    }

    public void setDataTypeId(String dataTypeId) {
        this.dataTypeId = dataTypeId;
    }

    public String getUnitId() {
        return unitId;
    }

    public void setUnitId(String unitId) {
        this.unitId = unitId;
    }

    public String getDataUnitId() {
        return dataUnitId;
    }

    public void setDataUnitId(String dataUnitId) {
        this.dataUnitId = dataUnitId;
    }

    public String getAdvanced() {
        return advanced;
    }

    public void setAdvanced(String advanced) {
        this.advanced = advanced;
    }

    public Integer getCollectInterval() {
        return collectInterval;
    }

    public void setCollectInterval(Integer collectInterval) {
        this.collectInterval = collectInterval;
    }

    public Integer getNotifyType() {
        return notifyType;
    }

    public void setNotifyType(Integer notifyType) {
        this.notifyType = notifyType;
    }

    public String getDictCode() {
        return dictCode;
    }

    public void setDictCode(String dictCode) {
        this.dictCode = dictCode;
    }
}
